<?php
//error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);
require('./roots.php');
require($root_path.'include/inc_environment_global.php');
/**
* CARE2X Integrated Hospital Information System beta 2.0.1 - 2004-07-04
* GNU General Public License
* Copyright 2002,2003,2004,2005,2006 Elpidio Latorilla
* elpidio@care2x.org, 
*
* See the file "copy_notice.txt" for the licence notice
*/

define('LANG_FILE','interconsulta.php');
define('NO_2LEVEL_CHK',1);
require_once($root_path.'include/inc_front_chain_lang.php');

$thisfile=basename(__FILE__);
$update = $_POST['update'];

require_once($root_path.'include/care_api_classes/class_core.php');
$core=new Core;

require_once($root_path.'include/care_api_classes/class_interconsulta.php');
$interconsulta=new Interconsulta;

$temp = $interconsulta->saveEspeUsuario();
//var_dump($temp);
if ($temp==TRUE)
{
    $msj = $LDInterActualiza;
}
else
{
    $msj = $LDInterAsignaError;
}

$sid=session_id();
header("Location:interconsulta.php?sid=$sid&lang=$lang&msj=$msj");

//header("Location:interconsulta.php".URL_APPEND."&lang=$lang&msj=$msj");

exit;
?>
